﻿<Page
    x:Class="Sample2_HitTesting.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Sample2_HitTesting"
	xmlns:dxaml="using:DXBase.XAML"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:d3d="using:DXBase.D3D"
	xmlns:ux="using:DXBase.XAML"
    mc:Ignorable="d">
	<Page.Resources>
		
	</Page.Resources>

	<dxaml:ScenePanel x:Name="dxPanel">
		<Grid>

			<StackPanel Orientation="Vertical" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="10" Background="#40000000" >

				<CheckBox Margin="10" HorizontalAlignment="Left" Content="Wireframe" 
						  IsChecked="{Binding Scene.RasterizerState.Wireframe, ElementName=dxPanel, Mode=TwoWay}"/>
				<ComboBox Margin="10" HorizontalAlignment="Left" 
						  ItemsSource="{Binding Scene.CullModes, ElementName=dxPanel}" 
						  SelectedItem="{Binding Scene.RasterizerState.CULL_MODE, ElementName=dxPanel, Mode=TwoWay}"/>

			</StackPanel>
		</Grid>
	</dxaml:ScenePanel>
	
</Page>
